package com.ransj.iphone;

import com.ransj.iphone.utils.ILog;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.sax.StartElementListener;
import android.text.TextUtils;
import android.util.Log;
/**
 * i receiver
 * @author ranshengju
 *
 */
public class IReceiver extends BroadcastReceiver{

	@Override
	public void onReceive(Context context, Intent intent) {
		String action = intent.getAction();
		ILog.getInstance().w("TAG", "onReceive..."+action);
		if(!TextUtils.isEmpty(action) && action.equals("notification.broadcast.action")){
			Intent service = new Intent(context, Iservice.class);
			service.setAction(Iservice.ACTION_SHOW_MAIN);
			context.startService(service);
		}
	}

}
